// const Mock = require("mockjs")
// const Random = Mock.Random;
const Mock = require("mockjs")
const Random = Mock.Random;

Random.extend({
    // 分类
    categorys: ["PP", "PE", "PVC", "ABS", "PS", "AS", "PA", "PC", "茂金属", "EAA", "塑料制品"],
    category: function (item) {
        return this.pick(this.categorys);
    },
    // 厂家
    companys: Random.pick(['阿里巴巴', '智者天下', '百度网讯', '诺亚方舟', '大庆石化']),
    company: function (item) {
        return Random.pick(this.companys);
    }
})
/* 模拟测试数据 */
function mockUserInfo() {
    const data = Mock.mock({
        "userName": '@name', //模拟名称
        "age|1-100": 100, //模拟年龄(1-100)
        "color": "@color", //模拟色值
        "date": "@date('yyyy-MM-dd')", //模拟时间
        "url": "@url()", //模拟url
        "content": "@cparagraph()" //模拟文本
    })
    return data;
}

/* 自动生产公司数据 */
function mockCompanyData() {
    // const data = Mock.mock({
    //     logo: Random.image('240x200', '#e92f2d', '#FFFFFF', '240x200'),
    //     name: Random.pick(['山东道恩集团有限公司营销中心', '青岛青塑贸易有限公司', '山东黄河贸易有限公司营销中心','青岛新材贸易有限公司']),
    //     address: Random.county(true),
    //     // employees:Random.natural(10,50)+'人',
    //     employees: Random.pick(['10以下', '10-20', '20-50', '50-500', '500以上'])+'人',
    //     categoray: Random.category(),
    //     vip:Random.pick(0,1),
    //     product:'PP、PE'
    // });
    // let data = Mock.mock({
    //     'list|5-10': [{
    //         'id|+1': 1,
    //         logo: Random.image('240x200', '#e92f2d', '#FFFFFF', '240x200'),
    //         name: Random.pick(['山东道恩集团有限公司营销中心', '青岛青塑贸易有限公司', '山东黄河贸易有限公司营销中心','青岛新材贸易有限公司']),
    //         address: Random.county(true),
    //         employees: Random.pick(['10以下', '10-20', '20-50', '50-500', '500以上'])+'人',
    //         categoray: Random.category(),
    //         vip:Random.pick(0,1),
    //         product:'PP、PE'
    //     }]
    // })

    let data = Mock.mock({
        'list|5-10': [{
            'id|+1': 1,
            logo: "@image('240x200', '#e92f2d', '#FFFFFF', '240x200')",
            name: "@pick(['山东道恩集团有限公司营销中心', '青岛青塑贸易有限公司', '山东黄河贸易有限公司营销中心', '青岛新材贸易有限公司'])",
            address: "@county(true)",
            employees: "@pick(['10以下', '10-20', '20-50', '50-500', '500以上'])" + '人',
            category: "@category()",
            vip: "@pick(0, 1)",
            product: 'PP、PE'
        }],
        'banner|4': [{
            'title': '',
            'img': "@image('1920x420', '#e92f2d', '#FFFFFF', '1920x420')"
        }]
    })
    return data;
}
// 资讯中心
function information() {
    let data = Mock.mock({
        //Handover list
        //资讯tab列表数据    
        'Handoverlist|7': [{
                'listid|+1': 1,
                'Recommend': '推荐',
                'Prompt': '推荐早提示',
                'Economics': '宏观经济',
                'dynamic': '上游动态',
                'downstream': '下游动态',
                'Presentation': '调研报告',
                'Datacenter': '数据中心',
            }

        ],
        'Recom|20': [{
            'id|+1': 1,
            //  咨询中心图
            'ReImg': "@image('713x394','#C71D24','#ffff','资讯中心')",
            //详情页大图
            'detaImg': "@image('850x320','#C71D24','#ffff','详情')",
            //  咨询中心列表图片  
            'listImg': "@image('180x164','#C71D24','#ffff','资讯列表')",
            'contentitle': '@csentence()',
            'contentdate': '@date("yyyy-MM-dd")',
            'lsContent': [{
                'paragraphOne': '@cparagraph(1,3)'
            }, {
                'paragraphTwo': '@cparagraph(3,7)'
            }, {
                'paragraphThree': '@cparagraph(3,7)'
            }, {
                'paragraphFour': '@cparagraph(3,7)'
            }, {
                'paragraphFive': '@cparagraph(3,7)'
            }, {
                'paragraphSeven': '@cparagraph(3,7)'
            }, {
                'paragraphSix': '@cparagraph(3,7)'
            }],

            'Recommend': '推荐',
            'Prompt': '推荐早提示',
            'Economics': '宏观经济',
            'dynamic': '上游动态',
            'downstream': '下游动态',
            'Presentation': '调研报告',
            'Datacenter': '数据中心',
        },
            // {'id':'1','data':["面相对向面相对向面相对向面相对向面相对向面相对向面相对向面相对向","开导开导开导开导空空荡荡看看打开看到开导开导","分积分积分减肥减肥减肥减肥减肥减肥经济法"]},
        ],
        //   资讯中心列表数据
        'Recom_list|20': [{
            'id|+1': 1,
            //  咨询中心列表图片  
            'listImg': "@image('180x164','#C71D24','#ffff','资讯列表')",
            //详情页大图
            'detaImg': "@image('850x320','#fda06e','#ffff','详情')",
            'contentitle': '@csentence()',
            'contentdate': '@date("yyyy-MM-dd")',
            'lsContent': [{
                'paragraphOne': '@cparagraph(1,3)'
            }, {
                'paragraphTwo': '@cparagraph(3,7)'
            }, {
                'paragraphThree': '@cparagraph(3,7)'
            }, {
                'paragraphFour': '@cparagraph(3,7)'
            }, {
                'paragraphFive': '@cparagraph(3,7)'
            }, {
                'paragraphSeven': '@cparagraph(3,7)'
            }, {
                'paragraphSix': '@cparagraph(3,7)'
            }]
        }],

    })
    return data;
}
function information() {
    let data = Mock.mock({
        'Recom|10': [{
            //  咨询中心图
            'ReImg': "@image('713x394','#C71D24','#ffff','资讯中心')",
            //详情页大图
            'detaImg': "@image('850x320','#C71D24','#ffff','详情')",

            'contentitle': '@csentence()',
            'contentdate': '@date("yyyy-MM-dd")',
            'lsContent': [{
                'paragraphOne': '@cparagraph(1,3)'
            }, {
                'paragraphTwo': '@cparagraph(3,7)'
            }, {
                'paragraphThree': '@cparagraph(3,7)'
            }, {
                'paragraphFour': '@cparagraph(3,7)'
            }, {
                'paragraphFive': '@cparagraph(3,7)'
            }, {
                'paragraphSeven': '@cparagraph(3,7)'
            }, {
                'paragraphSix': '@cparagraph(3,7)'
            }]

        }],
        //   资讯中心列表数据
        'Recom_list|20': [{
            //  咨询中心列表图片  
            'listImg': "@image('180x164','#C71D24','#ffff','资讯列表')",
            //详情页大图
            'detaImg': "@image('850x320','#fda06e','#ffff','详情')",
            'contentitle': '@csentence()',
            'contentdate': '@date("yyyy-MM-dd")',
            'lsContent': [{
                'paragraphOne': '@cparagraph(1,3)'
            }, {
                'paragraphTwo': '@cparagraph(3,7)'
            }, {
                'paragraphThree': '@cparagraph(3,7)'
            }, {
                'paragraphFour': '@cparagraph(3,7)'
            }, {
                'paragraphFive': '@cparagraph(3,7)'
            }, {
                'paragraphSeven': '@cparagraph(3,7)'
            }, {
                'paragraphSix': '@cparagraph(3,7)'
            }]
        }],

    })
    return data;
}
// 客户资源 -武云斌-
function custome() {
    let data = Mock.mock({
        'pany_list|10': [{
            'id|+1': 1,
            'pany_logo': "@image('240x200', '#e92f2d', '#FFFFFF', '240x200')",
            'pany_smalogo': "@image('120x120', '#e92f2d', '#FFFFFF','小logo')",
            'pany_name': "@pick(['山东道恩集团有限公司营销中心', '青岛青塑贸易有限公司', '山东黄河贸易有限公司营销中心', '青岛新材贸易有限公司'])",
            'pany_address': "@county(true)",
            'pany_employees': "@pick(['10以下', '10-20', '20-50', '50-500', '500以上'])" + '人',
            'pany_category': "@category()",
            'pany_vip': "@pick(0, 1)",
            'pany_product': 'PP、PE',
            'pany_brief': '@cparagraph(1,3)',
            'pany_url': '@url', //公司网址
            'Pany_address': '@county(true)',
            'pany_tel|1': ['001-777777', '010-8888888', '020-333333333', '080-789789', '090-999999', '111-1234689'],
            'pany_type': '@csentence(1,6)',
            'pany_resheat': [{
                'p_name': '@cname()'
            }, {
                'r_name': '@cname()'
            }],
            'pany_level': [{
                'position': '销售经理',
                'positi': '销售经理'
            }],
            'pany_resTel|1': ['13531544954', '13632250649', '15820292420', '15999905612', '17611339393', '17611339292', '15321582668']
        }],
        //客户列表
        'custome_list|20': [{
            'id|+1': 1,
            // 客户列表页
            'custImg': "@image('180x164', '#e92f2d', '#FFFFFF', 'logo')",
            'custDescribe': "@cparagraph()",
            'custAddres': "@city(true)",
            'custmony': '@float(1,1000000,2,2)',
            'custweight': "@natural(60,1000)" + '吨',
        }],
        'product_details|10': [{
            'id|+1': 1,
            'custProduct': '@cword(1,6)' + '@natural(1,1000000)', //品名
            'custlarImg': "@image('300x300','#e92f2d','#FFFFFF','详情图')", //大图
            'custsmallone': '@image("55x55","#e92f2d","#FFFFFF","小图")',
            'custsmallTwo': '@image("55x55","#e92f2d","#FFFFFF","小图")',
            'custsmalltre': '@image("55x55","#e92f2d","#FFFFFF","小图")',
            'custmony': '@float(1,1000000,2,2)', //参考价
            'custgrage': "@natural(1,100)", //牌号
            'custstock': "@natural(2,10)", //库存
            'custscience': '@pick(["PP", "PE", "PVC", "ABS", "PS", "AS", "PA", "PC", "茂金属", "EAA", "塑料制品"])', //材料组成
            'custhood': "@csentence(1,4)", //应用领域
            'custfactor': "中国" + "@csentence(2,4)", // 厂家
            'custment': "@city(true)", //  地址

            'DetailImg': '规格级别：耐寒 阻燃 亚光雾面 注塑 电子电器部件 电子电器部件 电子电器部件 电子电器部件 电子电器部件 电子',
            'custbigone': "@image('1030x682','#009fe2','#FFFFFF','详情图片')",
            'custsmall1': "@image('505x275','#009fe2','#FFFFFF','详情图')",
            'custsmall2': "@image('505x275','#009fe2','#FFFFFF','详情图')",
        }],

    })
    return data;


}




/**订单详情 -邢姗 */
function mockorderDetail() {
    let data = Mock.mock({
        'other|10': [{
            'id': "@natural(12)",
            'dataTime': "@datetime()",
            'hour': "@date(H)" + "小时",

        }],
        'list|1-10': [{
            'person': "@cname",
            'tel': "@natural(11)",
            'detailAddr': "@region()",
            'payment': "@pick(['款到发货','货到付款','分期付款'])",
            'product': "@float(1,37,2,2)",
            'fare': "@pick(['待确认','未确认'])",

            'method': "@pick(['配送','自提'])",
            'account': "@pick(['一票制','二票制','代收代付'])",
            'payable': "@float(1,10006,2,2)",

            'type': "@pick(['增值税专用发票','专用发票'])",
            'invoice': "北京磁云科技",
            'identity': "@natural(18)",

        }],
        'sdata|10': [{
            'sname': "@ctitle(3, 5)",
            'Pname': "@pick(['PP东华能源T30H','PP东华能源','PP'])",
            'spec': "@pick(['T30H','T40','T50'])",
            'place': "@pick(['东华能源'])",
            'kubie': "@region()",
            'unit': "@pick(['吨','千克'])",
            'num': "@float(0,30,2,2)",
            'price': "@float(0,30,2,2)",
            'cess': "@float(0,90,2,2)" + "%",
            'amount': "@float(0,10000,2,2)",
        }],
        'Odata|10': [{
            'totalTax': '@natural(1,30)',
            'fare1': '@float(1,20,2,2)',
            'cash': "-" + '@float(50,500,2,2)',
            'prefer': "-" + '@float(50,500,2,2)',
            'totalAount': '@float(50,1000,2,2)',
            'disbur': "￥" + '@float(50,10000,2,2)',
        }]
    })
    return data
}
/** 发布产品 --- 邓燕*/
function productBidding() {
    let data = Mock.mock({
        'Pinfo|10': [{
            "Pname": "@pick(['LLDPE薄膜','ABC薄膜','超薄薄膜'])",
            "type": '@cparagraph(1)',
            "grade": "@pick(['10D','20D','13D','17D'])",
            "area": "@region()",
            "num": "@natural(10,1000)",
            "unit": "吨",
            "price": "@float(600, 1000, 2, 2)",
            "composition": "@pick(['木头','塑料','钢铁'])",
            "application": "@pick(['超市货架标签条、普通透明PVC管材、异型材','普通透明PVC管材、异型材','PVC管材、异型材'])"
        }],
        'Pattr|10': [{
            "use": "@pick(['汽车部件','管材','板材','瓶盖专用料','食品'])",
            "processing": "@pick(['注塑','挤出','吹塑','挤出级','挤压级'])",
            "special": "@pick(['高抗冲','玻纤增强','高刚性','透明','耐候'])",
            "system": "@pick(['REACH 38项检测','ROSH 6项检测','FDA食品级检测','ISO9001','REACH 38项检测'])",
        }],
        'Pdetail|10': [{
            "Pimg": "@image('158x120','#02adea', '上传照片')",
            "details": "@cparagraph(2,5)"
        }]
    })
    return data;
}

function generateCompanyData() {
    return mockCompanyData();
    // var temp = [];
    // for(var i =0; i< 10; i++){
    //     var obj = mockCompanyData();
    //     temp.push(obj);
    // }

    // return temp;
}

/* 首页-自选产品清单数据 */
function generatorData() {
    var temp = [];
    for (var i = 0; i < 10; i++) {
        var obj = {
            "productId": i,
            "type": Random.category(),
            "marknum": "18D",
            "company": Random.company(),
            "num": Random.pick(['有货', '无货']),
            "address": Random.city(),
            "sendway": Random.pick(['自提', '配送']),
            "updatetime": Random.natural(1, 60),
            "kLine": [Random.natural(20, 50), Random.natural(20, 50), Random.natural(20, 50), Random.natural(20, 50), Random.natural(20, 50), Random.natural(20, 50), Random.natural(20, 50)],
            "price": Random.natural(10000, 20000),
            "updown": Random.pick(['↑', '↓']) + Random.natural(50, 350)
        };
        temp.push(obj);
    }
    return temp;
}
/* 自营商城数据-陈永辉*/
function autotrophyData() {
    var address = [];
    for (var i = 0; i < 10; i++) {
        var obj = {
            "productId": i,
            "pro": Random.province("山西省", "山东省", "河北省"),
            "cy": Random.city("太原市", "菏泽市", "邯郸市"),
            "cty": Random.county("文水县", "祁县", "交城")

        };
        address.push(obj);
    }
    return address;
}

// 用户登录信息数据
function UserLogin() {
    var newdata = {
        "code": 0,
        "data": [{
            "userId": 1,
            "username": "chenzhen",
            "password": "111111",
            "salt": null,
            "email": null,
            "mobile": "13111111111",
            "status": null,
            "roleIdList": null,
            "createUserId": null,
            "createTime": null,
            "deptId": null,
            "deptName": null
        }, {
            "userId": 2,
            "username": "wangqiangmin",
            "password": "111111",
            "salt": "阿萨德",
            "email": null,
            "mobile": "13111111111",
            "status": null,
            "roleIdList": null,
            "createUserId": null,
            "createTime": null,
            "deptId": null,
            "deptName": null
        }, {
            "userId": 3,
            "username": "admin",
            "password": "111111",
            "salt": "阿萨德",
            "email": null,
            "mobile": "13111111111",
            "status": null,
            "roleIdList": null,
            "createUserId": null,
            "createTime": null,
            "deptId": null,
            "deptName": null
        }]
    }
    return newdata
}

// 设置新密码
function newpassword() {
    var data = {
        "code": "0",
        "msg": "修改密码成功"
    }
    return data
}
// 找回密码
function RetrievePassword() {
    var data = {
        "code": 0,
        "msg": "获取验证码成功",
        "phone": "182****7783",
        "verificationCode": Random.natural(100000, 999999)
    }
    return data
}


/* 自营商城优惠活动数据-陈永辉 */
function discountData() {
    var discounts = [];
    for (var i = 0; i < 10; i++) {
        var obj = {
            "productId": i,
            "name": "满1000减100",
            "preferential": "PE类产品专享",
            "validity1": ' 2017-09-08 ',
            "validity2": ' 2017-10-10 '

        };
        discounts.push(obj);
    }
    return discounts;
}
/* 自营商城收货地址数据-陈永辉 */
function raddressData() {
    var obj = {
        "order_id":1,
        "consignee": "谭昆山",
        "number": "18745683215",
        "company": "道恩集团有限公司",
        "address": "北京市朝阳区浦项中心B座20层"
    }
    return obj;
}
/* 自营商城分类筛选数据-陈永辉 */
function screeningData() {
    var data = {

        "classification": ['PP', 'PE', 'PVC', 'ABS', 'PS', 'AS', 'PA', 'PC', '茂金属', 'EAA', '塑料制品'],
        "porigin": ['上海石化', '上海赛科', '东华能源', '伊朗石化', '中煤榆林', '天津石化'],
        "houselocation": ['山东青岛', '上海市', '东莞市', '广州市', '日照市', '龙口市', '龙口市', '天津市', '宁波市', '成都市', '桂林市', '佛山市', '北京市']
    }

    return data;
}
/* 自营商城产品清单数据-陈永辉 */
function inventoryData() {
    var inventory = [];
    for (var i = 0; i < 10; i++) {
        var obj = {
            "id": 0,
            "name": "Pv东华能源T30H",
            "specifications": "T50H",
            "manufactor": "东华能源",
            "delivery": "山东龙口",
            "company": "克",
            "num": "10",
            "price": "200"
        };
        inventory.push(obj);
    }
    return inventory;
}
//自营商城立即下单-产品清单，支付、配送、运费结算方式数据
function Paymentmethod() {
    var obj = {
        "data": [{
                "title": "支付方式",
                "name1": "款到发货",
                "name2": "线下支付"
            },
            {
                "title": "配送方式",
                "name1": "配送",
                "name2": "自提"
            },
            {
                "title": "运费开票方式",
                "name1": "一票制",
                "name2": "二票制"
            }
        ]
    }
    return inventory;
}
//自营商城立即下单-产品清单，支付、配送、运费结算方式数据
function Paymentmethod() {
    var obj = {
        "data": [{
            "title": "支付方式",
            "name1": "款到发货",
            "name2": "线下支付"
        },
        {
            "title": "配送方式",
            "name1": "配送",
            "name2": "自提"
        },
        {
            "title": "运费开票方式",
            "name1": "一票制",
            "name2": "二票制"
        }
        ]
    }
    return obj;
}

/* 专家数据 */

function newExpertsdata() {
    var tempdata = [];
    for (var i = 1; i < 5; i++) {
        var newdata = {
            "expertImg": Random.image("50x50", "#009fe2", "#FFFFFF", "头像"),
            "name": Random.cname(),
            "introduce": Random.cparagraph(1, 2),
            "descrtion": Random.cparagraph(7),
            "price1": 100,
            "price2": 500
        }
        tempdata.push(newdata)
    }
    return tempdata
}



// 物性库-分类列表数据

function typelistData() {

    var data = {
        "classification": ['PP', 'PE', 'PVC', 'ABS', 'PS', 'AS', 'PA', 'PC', ' 茂金属', 'EAA', 'PP', 'PE', 'PVC', 'ABS', 'PS', 'AS', 'PA', 'PC', ' 茂金属', 'EAA'],
        "use": ['汽车部件', '薄膜', '电子电器部件', '电线电缆料', '运动器材'],
        "Processing": ['注塑级', '挤出级', '注塑级成型', '注塑级中型', '注塑级小型'],
        "feature": ['阻燃', '热稳定', '易弯曲', '耐热', '增韧', '耐磨', '低翘曲', '耐刮擦', ' 茂金属', 'EAA', '阻燃', '热稳定']
    }
    return data;
}


// 物性库-级别列表数据
function levellistData() {
    var temp = [];
    for (var i = 0; i < 10; i++) {
        var obj = {
            "levelid": i,
            "name": Random.pick(['POM/美国杜邦/100P', 'POM/美国杜邦/100P']),
            "featurelevel": Random.pick(['注塑级,高刚性,高抗冲,高强度,耐磨', '注塑级,高刚性,高光泽']),
            "uselevel": Random.pick(['汽车部件', '电子电器部件,家电部件,汽车部件']),
        }
        temp.push(obj);
    }
    return temp
}

// 物性库-详情列表数据
function detailslistData() {
    var temp = [];
    for (var i = 0; i < 10; i++) {
        var obj = {
            "detailsid": i,
            "Performance": Random.pick(['悬臂梁冲击强度', '拉伸伸长率', '弯曲系数', '弯曲强度']),
            "test": Random.pick(['ASTM D-256', 'ASTM D-256']),
            "condition": Random.pick(['100℃破裂点', '200℃破裂点']),
            "result": Random.pick(['40', '50', '10']),
            "unit": Random.pick(['Mpa', 'M', 'P', 'a']),
        }
        temp.push(obj);
    }
    return temp
}
// 塑云金融数据接口 栗搏

function finaServerData() {
    var obj = {
        server1: {
            "serverImg1": Random.image("320x290", "#393337", "#FFFFFF"),
            "serverTitle1": "企业白条",
            "serverStruct1": "先拿货,后付款期限灵活",
            "intRate1": "利率：每月最低1.2%"
        },
        server2: {
            "serverImg1": Random.image("320x290", "#393337", "#FFFFFF"),
            "serverTitle1": "现金贷",
            "serverStruct1": "无抵押  存信用  大金额  放款快",
            "intRate1": "利率：每月最低1.1%"
        },
        server3: {
            "serverImg1": Random.image("320x290", "#393337", "#FFFFFF"),
            "serverTitle1": "股权投资",
            "serverStruct1": "融资高效  专业服务  安全可靠"
        }
    }
    return obj;
}

// 我们的优势
function ascendData() {
    var temp = [{
            "asImg": 'pingtai.png',
            "asTitle": "大型平台",
            "asInstruct": "覆盖全国300多个城市"
        },
        {
            "asImg": "user.png",
            "asTitle": "强大团队",
            "asInstruct": "为整个生态圈提供金融服务"
        },
        {
            "asImg": "shouxin.png",
            "asTitle": "平台授信",
            "asInstruct": "国内首家大数据征信"
        },
        {
            "asImg": "anquan.png",
            "asTitle": "信息安全",
            "asInstruct": "5层防火墙数据隔离系统"
        }
    ];
    return temp
}













// 塑云商城（立即发送）
function syFinPhone() {
    let data = {
        "choose": ["请选择", "500万", "1000万", "3000万", "3000万+"],

    }
    return data

}


/* 塑云点电商接口数据 */

function suyunData() {
    let productList = generatorData();
    let data = {
        "seller": {
            "login": {
                "code": 0,
                "data": {
                    "userId": 1,
                    "password": 123123
                }
            },
            "searchList": {
                "code": 0,
                "data": [{
                    "productName": "道恩集团",
                    "productId": 1
                },
                {
                    "productName": "拉丝PP",
                    "productId": 2
                },
                {
                    "productName": "注塑PP",
                    "productId": 3
                },
                {
                    "productName": "共聚纤维PP",
                    "productId": 4
                },
                {
                    "productName": "低压pp",
                    "productId": 5
                },
                {
                    "productName": "工程塑料",
                    "productId": 6
                },
                {
                    "productName": "橡胶苯酚",
                    "productId": 7
                },
                {
                    "productName": "线性高压",
                    "productId": 8
                }
                ]
            },
            "searchList_2": {
                "code": 0,
                "data": [{
                    "productName": "7050H",
                    "productId": 1
                },
                {
                    "productName": "2426H",
                    "productId": 2
                },
                {
                    "productName": "L5E89",
                    "productId": 3
                }
                ]
            },
            "banners": {
                "code": 0,
                "data": [{
                    "img": "../assets/img/banner_1.png"
                }

                ]
            },
            "selectgrops": {
                "code": 0,
                "data": [{
                    "selectid": 1,
                    "selectVal": "拉斯"
                },
                {
                    "selectid": 2,
                    "selectVal": "注塑"
                },
                {
                    "selectid": 3,
                    "selectVal": "共聚纤维"
                }
                ]
            },
            "placegrops": {
                "code": 0,
                "data": [{
                    "placeid": 1,
                    "placeVal": "龙口"
                },
                {
                    "placeid": 2,
                    "placeVal": "青岛"
                },
                {
                    "placeid": 3,
                    "placeVal": "烟台"
                }
                ]
            },
            "productList": {
                "code": 0,
                "total": 500,
                "data": productList
            },
            // "productList": {
            //   "code": 0,
            //   "data": [{
            //       "productId": 1,
            //       "type": "LLDPE",
            //       "marknum": "18D",
            //       "company": "大庆石化",
            //       "num": "有货",
            //       "address": "广州",
            //       "sendway": "配送",
            //       "updatetime": "5分钟前",
            //       "price": "20000",
            //       "updown": "↑50"
            //     },
            //     {
            //       "productId": 2,
            //       "type": "LLDPE",
            //       "marknum": "18D",
            //       "company": "大庆石化",
            //       "num": "自提",
            //       "address": "广州",
            //       "sendway": "配送",
            //       "updatetime": "1分钟前",
            //       "price": "11080",
            //       "updown": "↑50"
            //     },
            //     {
            //       "productId": 3,
            //       "type": "LLDPE",
            //       "marknum": "18D",

            //       "company": "大庆石化",
            //       "num": "无货",
            //       "address": "广州",
            //       "sendway": "配送",
            //       "updatetime": "2分钟前",
            //       "price": "10050",
            //       "updown": "↓50"
            //     }
            //   ]
            // },
            "errorRemind": {
                "code": 400,
                "msg": "业务错误"
            },
            "page": {
                "code": 0,
                "data": {
                    "totalCount": 3,
                    "pageSize": 2,
                    "totalPage": 2,
                    "currPage": 1,
                    "list": [{
                        "id": 1,
                        "name": "candy1",
                        "version": 1,
                        "creameTime": null,
                        "success": true
                    },
                    {
                        "id": 2,
                        "name": "candy2",
                        "version": 1,
                        "creameTime": null,
                        "success": true
                    }
                    ]
                }
            }


        }
    }

    return data;
}


/* 财务管理 我的发票接口数据 */
function invoiceCompanyData() {
    var temp = [];
    for (var i = 0; i < 5; i++) {
        var obj = {
            operation: Random.pick(['申请开票','查看']),
            time: '2015-04-23 11:20:04',
            number: 'XS20160408 - 001',
            status: Random.pick(['未开票','已开票']),
            invoicename: Random.pick(['磁云科技9000212344']),
            price: '100.00'
        };
        temp.push(obj);
    }

    return temp;
}


/* 财务管理 收支明细接口数据 */
function detailCompanyData() {
    var temp = [];
    for (var i = 0; i < 5; i++) {
        var obj = {
            time: '2015-04-23 11:20:04',
            number: 'XS20160408 - 001',
            type: Random.pick(['订单', '竞价单']),
            company: '磁云科技',
            price: '100.00',
            direction: Random.pick(['收入', '支出']),
            balance: '1500.00'
        };
        temp.push(obj);
    }

    return temp;
}



/*产品管理-产品管理接口数据 */
function managementCompanyData() {
    var temp = [];
    for (var i = 0; i < 5; i++) {
        var obj = {
            name: 'LLDPE薄膜',
            type: '通用塑料',
            specifications: '18D',
            area: '超市货架标签条、普通透明PVC管材、异型材',
            purpose: Random.pick(['汽车部件', '管材', '板材', '瓶盖专用料', '食品']),
            feature: Random.pick(['注塑', '挤出', '吹塑', '挤出级', '挤压级']),
            processing: Random.pick(['高抗冲', '高抗冲', '高刚性', '耐候', '透明']),
            system: Random.pick(['REACH38项检测', 'REACH38项检测', 'REACH38项检测', 'REACH38项检测', 'REACH38项检测']),
            company: '吨'
        };
        temp.push(obj);
    }

    return temp;
}
/* 技术专家分类筛选数据-王洋 */
function expertcfData() {

    var data = {

        "classification": ['注塑', '后加工', '注塑', '后加工', '注塑', '后加工', '注塑', '后加工', '注塑', '后加工', '注塑', '后加工', '注塑', '后加工', '注塑', '后加工', '注塑', '后加工'],
        "technical": ['院士', '副院士', '教授', '副教授', '高级工程师']
    }

    return data;
}
// 技术中心图片--王洋
function expertiData() {
    var data = Mock.mock({

        'ReImg': "@image('1920x250','#C71D24','red','1920x250')",

    })

    return data;
}
/* 技术专家问答数据-王洋 */
function problemsData() {
    var temp = [];
    for (var i = 0; i < 5; i++) {
        var obj = {
            name: '谭**',
            time: '2015-04-23 11:20:04',
            questions: [Random.csentence(12, 30)],
            replytime: '2015-04-23 11:30:04',
        };
        temp.push(obj);
    }

    return temp;
}
/*产品管理-员工管理接口数据 --郝天耀 */
function StaffCompanyData() {
    var temp = [];
    for (var i = 0; i < 5; i++) {
        var obj = {
            name: Random.pick(['张磊', '王飞']),
            position: '销售经理',
            phone: Random.pick(['18611445123', '18611445000']),
            email: Random.pick(['tan123@sina.com', 'tan000@sina.com']),
            status: Random.pick(0, 1),
            contacts: Random.pick(0, 1),
            isSwitch:false
        };
        temp.push(obj);
    }

    return temp;
}


/*订单管理-我的服务接口数据 --郝天耀 */
function serviceCompanyData() {
    var temp = [];
    for (var i = 0; i < 5; i++) {
        var obj = {
            number: 'AD038347464',
            time: '2017-05-09 16:00',
            name: Random.pick(['王林', '王飞', '王锐']),
            type: Random.pick(['电话咨询', '在线咨询']),
            price: Random.pick(['0.00', '300.00', '40.00']),
            status: Random.pick(['待支付', '待安排', '已安排', '已完成']),
        };
        temp.push(obj);
    }

    return temp;
}
/*订单管理-我的订单接口数据 --郝天耀 */
function orderCompanyData() {
    var temp = [];
    for (var i = 0; i < 5; i++) {
        var obj = {
            number: 'AD038347464',
            Creationtime: "2017-05-09 16:00",
            Supplier: '商家1',
            Taxamount: '3452.00',
            payment: Random.pick(['0.00', '300.00', '40.00']),
            Paymentstatus: Random.pick(['已付款', '部分付款']),
            Distribution: Random.pick(['待发货', '已收货', '配送中', '已发货']),
            Orderstatus: Random.pick(['待审核', '待执行', '已作废', '已完成']),
            Paymentmethod: Random.pick(['货到付款', '款到发货', '在线支付']),
            Distributionmode: Random.pick(['自提', '配送']),
            updatatime: '2017-05-09 19:09:09'
        };
        temp.push(obj);
    }

    return temp;
}


/*企业中心-我的企业接口数据 --郝天耀 */
function myenterpriseCompanyData() {
    var obj = [
        {
            img: '03.jpg',
            title: '订单总额',
            number: 10000000.00
        }, {
            img: '04.jpg',
            title: '订单数',
            number: 40
        }, {
            img: '05.jpg',
            title: '待付款',
            number: 1
        }, {
            img: '06.jpg',
            title: '待发货',
            number: 20
        }
    ];
    return obj;
}


module.exports = {
    mockUserInfo: mockUserInfo,
    suyunData: suyunData,
    companyData: generateCompanyData,
    expertData: newExpertsdata,
    orderDetailData: mockorderDetail,
    myenterpriseData: myenterpriseCompanyData,

    autotrophyData: autotrophyData,
    discountData: discountData,
    raddressData: raddressData,
    screeningData: screeningData,
    inventoryData: inventoryData,
    expertcfData: expertcfData,
    exportiData: expertiData,
    problemsData: problemsData,

    invoiceData: invoiceCompanyData,
    detailData: detailCompanyData,
    StaffData: StaffCompanyData,
    managementData: managementCompanyData,
    serviceData: serviceCompanyData,
    orderData: orderCompanyData,
    typelist: typelistData,
    levellist: levellistData,
    detailslist: detailslistData,
    UserLogin: UserLogin,
    newpassword: newpassword,
    RetrievePassword: RetrievePassword,
    inventory: inventoryData,
    informationdata: information,
    Paymentmethod: Paymentmethod,
    informationdata: information,
    customeData: custome,

    productBidding: productBidding,

    syFinPhoneData: syFinPhone,


    finaServer: finaServerData,
    ascend: ascendData
}